﻿#Region "Using Directives"
Imports System
Imports System.Collections.Generic
Imports System.Text
#End Region

Namespace C4F.DevKit.Bluetooth
    Namespace ServiceAndDeviceDiscovery


        ''' <summary>
        ''' Represents the WSADATA structure used in call to Initialize Winsock.
        ''' </summary>
        <System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices. _
                                                     LayoutKind.Sequential)> _
        Public Structure WsaData

            ''' <summary>
            ''' Version of the Windows Sockets specification that 
            ''' the Ws2_32.dll expects the caller to use.
            ''' </summary>
            Public Version As Short

            ''' <summary>
            ''' Highest version of the Windows Sockets specification
            ''' that this .dll can support.
            ''' </summary>
            Public HighVersion As Short

            ''' <summary>
            ''' Null-terminated ASCII string into which the Ws2_32.dll 
            ''' copies a description of the Windows Sockets implementation.
            ''' </summary>
            <System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices. _
                                                      UnmanagedType.ByValTStr, _
                                                      SizeConst:=BluetoothHelper. _
                                                      WSADESCRIPTION_LEN + 1)> _
            Public Description As String

            ''' <summary>
            ''' Null-terminated ASCII string into which the WSs2_32.dll
            ''' copies relevant status or configuration information. 
            ''' </summary>
            <System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices. _
                                                      UnmanagedType.ByValTStr, _
                                                      SizeConst:=BluetoothHelper. _
                                                      WSASYS_STATUS_LEN + 1)> _
            Public SystemStatus As String

            ''' <summary>
            ''' Retained for backward compatibility, but should be ignored
            ''' for Windows Sockets version 2 and later, as no single value 
            ''' can be appropriate for all underlying service providers.
            ''' </summary>
            Public MaxSockets As Short

            ''' <summary>
            ''' Ignored for Windows Sockets version 2 and onward.
            ''' </summary>
            Public MaxUdpDg As Short

            ''' <summary>
            ''' Ignored for Windows Sockets version 2 and onward.
            ''' </summary>
            Public VendorInfo As IntPtr

        End Structure
    End Namespace
End Namespace
